remotemanager.connection.computers.utils module

remotemanager.connection.computers.utils.format_time(time: int | float | str) str | None[source]

Take integer seconds and generate a HH:MM:SS timestring

Parameters:

time (int) – seconds

Returns:

HH:MM:SS format timestamp

Return type:

(str)

remotemanager.connection.computers.utils.time_to_string(time: int) str[source]

Converts integer seconds to HH:MM:SS format

remotemanager.connection.computers.utils.time_to_s(time: str) int[source]

Convert back from HH:MM:SS to integer seconds

remotemanager.connection.computers.utils.semantic_to_int(time: str) int[source]

Convert “semantic” time strings to integer format

i.e. 24h => 86400, 30m => 1800

remotemanager.connection.computers.utils.try_value(inp: Any) Any[source]

Try to access the value property

This _needs_ to be used in the presence of DynamicValues, since they override a lot of basic functions. This can cause recursion errors if not handled properly